home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #9 / Amiga Plus CD - 2004 - No. 09.iso / amigaplus / tools / amigaos4_only / smbfs / source / smakefile < prev    next >
Encoding:
Makefile  |  2004-08-03  |  2.4 KB  |  77 lines

  1. #
  2. # $Id: smakefile,v 1.4 2004/05/09 10:16:52 obarthel Exp $
  3. #
  4. # :ts=8
  5. #
  6. # SMB file system wrapper for AmigaOS, using the AmiTCP V3 API
  7. #
  8. # Copyright (C) 2000-2004 by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; either version 2 of the License, or
  13. # (at your option) any later version.
  14. #
  15. # This program is distributed in the hope that it will be useful,
  16. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18. # GNU General Public License for more details.
  19. #
  20. # You should have received a copy of the GNU General Public License
  21. # along with this program; if not, write to the Free Software
  22. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23. #
  24.  
  25. .c.o:
  26.     sc $(CFLAGS) $<
  27.  
  28. ###############################################################################
  29.  
  30. PROJECT = smbfs
  31.  
  32. ###############################################################################
  33.  
  34. OPTIMIZE =    optimize opttime optinline optinlocal optschedule
  35.  CPU =        any
  36. #CPU =        060
  37.  DEBUG =    line
  38. #DEBUG =    symbolflush noopt define=DEBUG
  39.  
  40. ###############################################################################
  41.  
  42. CFLAGS =    idlen=64 comnest streq strmerge nostkchk \
  43.         $(OPTIMIZE) cpu=$(CPU) debug=$(DEBUG) data=faronly \
  44.         params=register idir=netinclude idir=include \
  45.         gst=system_headers.gst
  46.  
  47. LFLAGS =    smallcode smalldata noicons batch
  48.  
  49. ###############################################################################
  50.  
  51. OBJS = main.o proc.o smb_abstraction.o sock.o crypt.o
  52.  
  53. ###############################################################################
  54.  
  55. LIBS = lib:sc.lib lib:amiga.lib lib:debug.lib
  56.  
  57. ###############################################################################
  58.  
  59. all: system_headers.gst $(PROJECT)
  60.  
  61. $(PROJECT): $(OBJS) system_headers.gst Assert.o
  62.     slink $(OBJS) to $@.debug lib $(LIBS) Assert.o $(LFLAGS) \
  63.         map $(PROJECT).map,fhx fwidth 32 pwidth 32 swidth 32
  64.     slink $@.debug to $@ noicons nodebug
  65.  
  66. system_headers.gst: system_headers.h system_headers.c
  67.     gst unload $@
  68.     sc $(CFLAGS) nodebug noobjname nogst makegst=$@ system_headers.c
  69.  
  70. ###############################################################################
  71.  
  72. clean:
  73.     -delete \#?.o $(PROJECT)(%|.debug)
  74.  
  75. realclean: clean
  76.     -delete system_headers.gst \#?.map all
  77.